﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class SplashScreen : Form
    {
        public SplashScreen()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            progressBar1.Increment(1);

            if (progressBar1.Value == 5)
            {
                label1.Text = "Calculating User Space";
            }

            if (progressBar1.Value == 20)
            {
                label1.Text = "Requesting Memory Map Space";
            }

            if (progressBar1.Value == 40)
            {
                label1.Text = "Loading Program Module";
            }

            if (progressBar1.Value == 60)
            {
                label1.Text = "Loading Database";
            }

            if (progressBar1.Value == 70)
            {
                label1.Text = "Initializing Database";
            }

            if (progressBar1.Value == 80)
            {
                label1.Text = "Initializing System";
            }

            if (progressBar1.Value == 100)
            {
                timer1.Stop();
                label1.Text = "System Loading...";
            }


        }

       
    }
}
